package info.niwota.gae;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class ContentServlet extends BaseServlet {

	protected boolean handle(HttpServletRequest req, HttpServletResponse resp)
			throws Exception {
		String uri = req.getRequestURI();

		if (uri.startsWith("/content/*")) {
			resp.sendRedirect("http://hotwebproxy.appspot.com" + uri);
			return true;
		}
		
		return false;
	}
}
